$(function() {
    $("#download-score").on('click', function(event) {
        event.preventDefault();
        var $form = $("#form-search");
        window.open($(this).data('url') + '?' + $form.serialize());
        return false;
    });
})